from rest_framework.viewsets import GenericViewSet
from rest_framework.mixins import ListModelMixin, RetrieveModelMixin
from apps.base import models
from rest_framework.response import Response


class ListRetrieveModelMixin:
    def list(self, request, *args, **kwargs):
        instance = self.get_object()
        serializer = self.get_serializer(instance)
        return Response(serializer.data)
class WalletViewSet(ListRetrieveModelMixin,GenericViewSet):
    # queryset =
    # serializer_class =
    # def get_object(self):
    pass